package com.sc.nft.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.SecondWantBuyOrderStatusEnum;
import com.sc.nft.enums.SecondWantBuyOrderTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 刘国航
 * @desc
 * @since 2024/12/21 11:59
 */
@Data
public class WantBuyOrderMyDetailVO implements Serializable {

    private static final long serialVersionUID = -7297766625670468370L;

    @ApiModelProperty("求购单id")
    private Long id;

    @ApiModelProperty("求购类型")
    private SecondWantBuyOrderTypeEnum orderType;

    @ApiModelProperty("藏品id/道具id")
    private Long relationId;

    @ApiModelProperty("藏品名称/道具名称")
    private String relationName;

    @ApiModelProperty("缩略图")
    private String creationContent;

    @ApiModelProperty("求购数量")
    private Integer wantBuyQuantity;

    @ApiModelProperty("求购单价")
    private BigDecimal wantBuyPrice;

    @ApiModelProperty("求购总价")
    private BigDecimal wantBuyAmount;

    @ApiModelProperty("已成交数量")
    private Integer completeCount;

    @ApiModelProperty("已成交金额")
    private BigDecimal completeAmount;

    @ApiModelProperty("状态")
    private SecondWantBuyOrderStatusEnum status;

    @ApiModelProperty("状态说明")
    private String statusName;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty("剩余时间")
    private String remainingTime;

    @ApiModelProperty("退回金额")
    private BigDecimal refundAmount;

    @ApiModelProperty("退回道具")
    private Integer refundProp;
    
}
